package com.zy.datareceiver.binsess.monitoring.param.index;

import java.util.HashMap;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.SynchronousQueue;

/**
 * 大屏左侧实时监测数据
 * */
public class DetectionData {
    private int[] color;
    private String[] shijian;
    private HashMap<String,Double[]> dataValue;

    public int[] getColor() {
        return color;
    }

    public void setColor(int[] color) {
        this.color = color;
    }

    public String[] getShijian() {
        return shijian;
    }

    public void setShijian(String[] shijian) {
        this.shijian = shijian;
    }

    public HashMap<String, Double[]> getDataValue() {
        return dataValue;
    }

    public void setDataValue(HashMap<String, Double[]> dataValue) {
        this.dataValue = dataValue;
    }



    public

    static

    void
    main(
            String
                    [] args)
            throws

            Exception
    {

        BlockingQueue
                <
                                Integer
                                > queue =
                new

                        SynchronousQueue
                                <>();

        System
                .
                        out
                .
                        print
                                (queue.offer(
                                        1
                                        ) +
                                                " "
                                );

        System
                .
                        out
                .
                        print
                                (queue.offer(
                                        2
                                        ) +
                                                " "
                                );

        System
                .
                        out
                .
                        print
                                (queue.offer(
                                        3
                                        ) +
                                                " "
                                );

        System
                .
                        out
                .
                        print
                                (queue.take() +
                                        " "
                                );

        System
                .
                        out
                .println(queue.size());
    }
}
